package com.ys.entity.overseas;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOS_PurchasePlanItem", catalog="Id")
public class TosPurchasePlanItem extends BaseEntity<TosPurchasePlanItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="PurchasePlanSonId", nameJava="purchasePlanSonId", typeDataBase="bigint")
	private Long purchasePlanSonId;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="TracingCode", nameJava="tracingCode", typeDataBase="varchar")
	private String tracingCode;
	@YsField(nameDataBase="HwChannel", nameJava="hwChannel", typeDataBase="varchar")
	private String hwChannel;
	@YsField(nameDataBase="SignCode", nameJava="signCode", typeDataBase="varchar")
	private String signCode;
	@YsField(nameDataBase="PurchaseCostPrice", nameJava="purchaseCostPrice", typeDataBase="decimal")
	private BigDecimal purchaseCostPrice;
	@YsField(nameDataBase="DeliveryCostPrice", nameJava="deliveryCostPrice", typeDataBase="decimal")
	private BigDecimal deliveryCostPrice;
	@YsField(nameDataBase="AuditingUser", nameJava="auditingUser", typeDataBase="varchar")
	private String auditingUser;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="AuditingTime", nameJava="auditingTime", typeDataBase="datetime")
	private Date auditingTime;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TosPurchasePlanItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPurchasePlanSonId() {
		return purchasePlanSonId;
	}
	public TosPurchasePlanItem setPurchasePlanSonId(Long purchasePlanSonId) {
		this.purchasePlanSonId = purchasePlanSonId;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TosPurchasePlanItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getTracingCode() {
		return tracingCode;
	}
	public TosPurchasePlanItem setTracingCode(String tracingCode) {
		this.tracingCode = tracingCode;
		return this;
	}
	public String getHwChannel() {
		return hwChannel;
	}
	public TosPurchasePlanItem setHwChannel(String hwChannel) {
		this.hwChannel = hwChannel;
		return this;
	}
	public String getSignCode() {
		return signCode;
	}
	public TosPurchasePlanItem setSignCode(String signCode) {
		this.signCode = signCode;
		return this;
	}
	public BigDecimal getPurchaseCostPrice() {
		return purchaseCostPrice;
	}
	public TosPurchasePlanItem setPurchaseCostPrice(BigDecimal purchaseCostPrice) {
		this.purchaseCostPrice = purchaseCostPrice;
		return this;
	}
	public BigDecimal getDeliveryCostPrice() {
		return deliveryCostPrice;
	}
	public TosPurchasePlanItem setDeliveryCostPrice(BigDecimal deliveryCostPrice) {
		this.deliveryCostPrice = deliveryCostPrice;
		return this;
	}
	public String getAuditingUser() {
		return auditingUser;
	}
	public TosPurchasePlanItem setAuditingUser(String auditingUser) {
		this.auditingUser = auditingUser;
		return this;
	}
	public Date getAuditingTime() {
		return auditingTime;
	}
	public TosPurchasePlanItem setAuditingTime(Date auditingTime) {
		this.auditingTime = auditingTime;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TosPurchasePlanItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TosPurchasePlanItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TosPurchasePlanItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TosPurchasePlanItem tosPurchasePlanItem(
		Long purchasePlanSonId,
		String pbid,
		String tracingCode,
		String hwChannel,
		String signCode,
		BigDecimal purchaseCostPrice,
		BigDecimal deliveryCostPrice,
		String auditingUser,
		Date auditingTime,
		Integer status
			) {
		TosPurchasePlanItem entity = new TosPurchasePlanItem();
		entity.setPurchasePlanSonId(purchasePlanSonId);
		entity.setPbid(pbid);
		entity.setTracingCode(tracingCode);
		entity.setHwChannel(hwChannel);
		entity.setSignCode(signCode);
		entity.setPurchaseCostPrice(purchaseCostPrice);
		entity.setDeliveryCostPrice(deliveryCostPrice);
		entity.setAuditingUser(auditingUser);
		entity.setAuditingTime(auditingTime);
		entity.setStatus(status);
		return entity;
	}
}